package com.yu.waterstation.app.moudles.ticketgoods.controller;

import com.yu.waterstation.app.moudles.ticketgoods.service.TicketGoodsService;
import com.yu.waterstation.common.common.annotation.VisitorAccess;
import com.yu.waterstation.common.common.util.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "水票商品")
@RestController
@RequestMapping("/ticketGoods")
public class TicketGoodsController {
    @Resource
    private TicketGoodsService ticketGoodsService;

    @ApiOperation("所有水票商品信息")
    @VisitorAccess
    @GetMapping
    public Result getAllTicketGoods() {
        return Result.ok(ticketGoodsService.getAllTicketGoods());
    }


}

